package cn.entity;

import com.mybatisflex.annotation.Table;
import com.ymx.darling.bean.annotation.Column;
import com.ymx.darling.bean.annotation.Entity;
import com.ymx.darling.bean.annotation.Id;
import com.ymx.darling.wrapper.build.fill.id.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author author
 */
@Data
@Entity(table = "user", schema = "darling")
@Table(value = "user", schema = "darling")
public class User implements Serializable {
	@Id(IdType.AUTO_BACK_FILL)
	@com.mybatisflex.annotation.Id
	private int id;
	private int age;
	private String name;
	@Column(insertFill = "sex")
	private String sex;
	private String phone;
	private String address;
	private String political;

	private List<Orders> ordersList;

    public User(){}

}
